package covertjava.intercept;

/**
 * <p>Demonstrates adding a JVM shutdown hook</p>
 * <p>Copyright: Copyright (c) 2004 Sams Publishing</p>
 * @author Alex Kalinovsky
 * @version 1.0
 */
public class ShutdownHook extends Thread {

    public void run() {
        System.out.println("Cleaning up for JVM shutdown");
    }

    public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(new ShutdownHook());
    }
}
